Map
Type
widget
Summary
A map widget for Android, iOS, 64-bit Mac, and Web.
Description
This widget wraps an MKMapView on iOS and 64-bit Mac, a GoogleMap on Android, and the GoogleMaps JavaScript API on Web. It supports simple markers and polylines.
note
In order to use the map widget on Android and Web, you must create Google Maps V2 API keys for your app, and set them in the standalone settings for the map widget via the cog icon in the Inclusions pane of the standalone settings stack.
Compatibility and Support
OS
android
ios
mac
web
Children Properties
Message
Name | Summary | Syntax |
---|---|---|
markerSelected | Sent when a map marker is selected | markerSelected <pMarkerTag> |
regionChanged | Sent when the map region changes | regionChanged |
Property
Name | Summary | Syntax |
---|---|---|
scrollEnabled | Whether the scrollbar is enabled | set the scrollEnabled of <widget> to { true | false } get the scrollEnabled of <widget> |
zoomEnabled | Whether map zoom is enabled | set the zoomEnabled of <widget> to { true | false } get the zoomEnabled of <widget> |
polylines | Polylines on the map | set the polylines of <widget> to <pMarkerData> get the polylines of <widget> |
animateMovement | Whether the movement of the map view is animated or not. | set the animateMovement of <widget> to { true | false } get the animateMovement of <widget> |
region | The region displayed by the map | set the region of <widget> to <pRegion> get the region of <widget> |
centerCoordinates | The coordinates at which the map view is centered. | set the centerCoordinates of <widget> to <pCoordinates> get the centerCoordinates of <widget> |
showsUserLocation | Whether to show the user's current location | set the showsUserLocation of <widget> to { true | false } get the showsUserLocation of <widget> |
span | The extent of the map displayed by the widget. | set the span of <widget> to <pSpan> get the span of <widget> |
markers | Marker points on the map | set the markers of <widget> to <pMarkerData> get the markers of <widget> |